package com.umakr.demo.service;

import com.umakr.demo.mapper.TeacherMapper;
import com.umakr.demo.model.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yangliu on 2017/8/18.
 */
@Service
public class TeacherService {
    @Autowired
    TeacherMapper teacherMapper;

    public List<Teacher> showAll(){
        return teacherMapper.showAll();
    }

    public void saveTeacher(Teacher teacher){
        teacherMapper.saveTeacher(teacher);
    }
    public void updataTeacher(Teacher teacher){
        teacherMapper.updataTeacher(teacher);
    }
    public void deleteTeacher(Teacher teacher){
        teacherMapper.deleteTeacher(teacher);
    }
}
